package com.bonuo.saas.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 任务单交付实体类
 * 对应数据库表：任务单交付表（根据实际表名修改类名）
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "TaskDelivery", description = "任务单交付信息")
public class TaskDelivery extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "任务单交付ID", example = "1")
    private Integer id;

    @ApiModelProperty(value = "项目Id", example = "1")
    private String projectId;

    @ApiModelProperty(value = "项目名称", example = "机器人项目")
    private String projectName;

    @ApiModelProperty(value = "项目编号", example = "P202306150001")
    private String projectNo;

    @ApiModelProperty(value = "省份", example = "江苏省")
    private String province;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "订单下发时间", example = "2023-06-15")
    private Date orderSendDate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "订单完成时间", example = "2023-12-30")
    private Date orderFinishDate;

    @ApiModelProperty(value = "中标单位", example = "XX科技有限公司")
    private String bidUnit;

    @ApiModelProperty(value = "收货地址", example = "南京市江宁区XX街道XX号")
    private String address;

    @ApiModelProperty(value = "联系人", example = "张三")
    private String contactPerson;

    @ApiModelProperty(value = "附件地址", example = "/upload/attachments/202306/xxx.pdf")
    private String attachment;

    @ApiModelProperty(value = "备注信息", example = "请按时完成交付")
    private String remark;

}
